From eee5cd53199f80c3b9170bf400d91b3801a18cf6 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Mon, 31 Jul 2017 23:27:59 -0500 Subject: [PATCH] Build with -O0 on arm64 to avoid FTBS Without this the build segfaults in marker.c when trying to construct c-by.el. cf. https://lists.gnu.org/archive/html/emacs-devel/2017-03/msg00798.html Thanks to Gianfranco Costamagna for reporting the bug and Barry Warsaw for suggesting the workaround. Closes: 868165 --- debian/rules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/rules b/debian/rules index 94d0632f9f8..fd6f3a7891d 100755 --- a/debian/rules +++ b/debian/rules @@ -102,6 +102,11 @@ endif deb_host_multiarch := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +# Without this, the build dies in marker.c when trying to create c-by.el +ifeq ($(DEB_HOST_ARCH),arm64) + export DEB_CFLAGS_MAINT_APPEND := -O0 +endif + CFLAGS = $(shell dpkg-buildflags --get CFLAGS) CFLAGS += -Wall LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) -- 2.30.2